import { request } from 'smartfetch'
// 登录接口
export function login (data) {
  return request({useCore: 'local'})('admin/auth/login', data, 'POST')
}

// 获取菜单数据
export function getMenuInfo (data) {
  return request('admin/auth/menu', data)
}

export function getMenuAll () {
  return request({useCore: 'local'})('admin/all')
}